﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAL;
using Model;
using System.Data;

namespace BLL
{
    public class NewSalesRecordBO
    {
        public NewSalesRecordBO() { }

        NewSalesRecordDAO dao = new NewSalesRecordDAO();

        /// <summary>
        /// 增加一条数据
        /// </summary>
        public int Add(NewSalesRecord model)
        {
            return dao.Add(model);
        }
        /// <summary>
        /// 更新一条数据
        /// </summary>
        public void Update(NewSalesRecord model)
        {
            dao.Update(model);
        }

        /// <summary>
        /// 删除一条数据
        /// </summary>
        public void Delete(int ID)
        {
             dao.Delete(ID);
        }


        /// <summary>
        /// 得到一个对象实体
        /// </summary>
        public NewSalesRecord GetModel(int ID)
        {
            return dao.GetModel(ID);
        }

        /// <summary>
        /// 获得数据列表
        /// </summary>
        public DataSet GetList(string strWhere)
        {
            return dao.GetList(strWhere);
        }
    }
}
